package test.aop.ascept;


import com.why.simpleboot.core.annotation.aop.*;
import com.why.simpleboot.core.annotation.ioc.Component;
import com.why.simpleboot.core.core.aop.entity.JointPoint;
import lombok.extern.slf4j.Slf4j;

@Aspect
@Order(value = 0)
@Slf4j
public class TeacherAspect {
    @Pointcut("test.aop.service.*Service*")
    public void oneAspect() {
    }

    @Before
    public void beforeAction(JointPoint joinPoint) {

        log.info("aspect teacher before to do something");
    }

    @After
    public void afterAction(JointPoint joinPoint, Object result)
    {
        log.info("aspect teacher after to do something");
    }
}
